<?php

namespace app\admin\validate\login;

use app\common\enum\ChannelEnum;
use tmcore\base\BaseValidate;

/**
 * 登录验证器
 */
class LoginValidate extends BaseValidate
{
    protected $rule = [
        'channel' => 'require|in:' . ChannelEnum::PC . ',' . ChannelEnum::H5,
        'account' => 'require',
        'password' => 'require',
    ];

    protected $message = [
        'account.require' => '请输入账号',
        'password.require' => '请输入密码',
    ];
}